import { getDictList } from "@/api/service/dict/utils";
import { DICT_ENUM } from "@/enum/dict.enum";
import { librarySizeData } from "./table";

export const libraryCategoryOptions = ref();

export const shareOptions = [
  {
    label: "云端公共素材",
    value: "4"
  },
  {
    label: "私有专属素材",
    value: "0"
  },
  {
    label: "所有",
    value: "3"
  }
];
export const storeOptions = [
  {
    label: "云",
    value: "0"
  },
  {
    label: "本地",
    value: "1"
  }
];
export const sizeOptions = computed(() => {
  return librarySizeData.value.map((e) => {
    return {
      label: e.sizeDesc,
      value: e.sizeId
    };
  });
});
export const isShare = [
  {
    label: "是",
    value: "1"
  },
  {
    label: "否",
    value: "0"
  }
];
const typeOptions = ref();

const getMaterialCategory = async () => {
  const data = await getDictList(DICT_ENUM.MATERIAL_CATEGORY);
  libraryCategoryOptions.value = data;
};
const modeOption = [
  {
    label: "ESL",
    value: "1"
  },
  {
    label: "LCD",
    value: "0"
  }
];
export { modeOption, getMaterialCategory, typeOptions };
